// register
import register from '../../../scripts/angular/register.js';

// routers
import CpRouter from '../routers/cp.routers.js';

// services
import CpService from '../services/cpService.js';

// controllers
import CpController from '../controllers/cp.controller.js';
import CpListController from '../controllers/cplist.controller.js';
import CpEditController from '../controllers/cpedit.controller.js';


angular
	.module('cp.module', [
		'ngAnimate', 
		'ngSanitize', 
		'ui.router',
	    'ngMessages',  
		'chieffancypants.loadingBar', 
		'ngDialog', 
	    'mgcrea.ngStrap', 
		'oc.lazyLoad',
		'ng-sortable'
	])
	.config(CpRouter)
	.controller('CpController', CpController)
	.controller('CpListController', CpListController)
	.controller('CpEditController', CpEditController)


register('cp.module')
    .factory('CpService', CpService);